home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
301-325
/
disk_319
/
cnewssrc
/
cnews.src.lzh
/
relay
/
io.c
< prev
next >
Wrap
C/C++ Source or Header
|
1989-06-27
|
500b
|
30 lines
/*
* common i/o operations
*/
#include <stdio.h>
#ifndef AMIGA
# include <sys/types.h>
#endif /* AMIGA */
#include "news.h"
#include "headers.h"
#include "article.h"
#include "msgs.h"
/*
* If *fpp is non-null, fclose it and check for errors.
* On error, call fulldisk(art, name).
*/
void
nnfclose(art, fpp, name)
struct article *art;
register FILE **fpp;
char *name;
{
if (*fpp != NULL) {
if (nfclose(*fpp) == EOF)
fulldisk(art, name);
*fpp = NULL; /* mark the stream closed */
}
}